package com.buybuyyi.stylistcrm.mybatis;

/**
 * Created by yanwc on 2016/9/17.
 */
public class MybatisMapper {
    private Long id;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        id = id;
    }

    @Override
    public int hashCode() {
       return this.id.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if(obj == null){
            return false;
        }
        if(!(obj instanceof MybatisMapper)){
            return false;
        }
        MybatisMapper mapper = (MybatisMapper)obj;
        if(mapper.getId() == this.id){
            return true;
        }
        return false;
    }
}
